Skip to content

fix: Improve binary place-value lesson and beginner problem generator - #480

Open
rolliver wants to merge 3 commits into
chuma-beep:mainfrom
rolliver:enhancement/binary-arithmetic
Open

rolliver wants to merge 3 commits into
chuma-beep:mainfrom
rolliver:enhancement/binary-arithmetic

Conversation

@rolliver

Copy link
Copy Markdown
Contributor

Summary

Updates the arith.place.binary lesson and the w8Binary problem generator to include examples for every section and more beginner-friendly number ranges and better explanations

Changes

  • Worked Examples (Original Headings Preserved): Added a worked example under each existing section (Powers of two as places, Converting a numeral, and Counting one bits) so every concept mirrors its corresponding practice problem.
  • Beginner Number Ranges: Scoped w8Binary inputs down from 5–255 to 3–15 (4-bit) for numeral conversion (case 1) and 5–31 (up to 5-bit) for largest-power-of-two (case 2) and popcount (default) questions.
  • Step-by-Step Explanations: Updated answer feedback strings to walk through right-to-left (2^k) place values, power-of-two doubling sequences, and repeated halving steps.

@rolliver rolliver changed the title Improve binary place-value lesson and beginner problem generator fix: Improve binary place-value lesson and beginner problem generator Nov 28, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant